package StudyCode.summary.mydatetime;

import java.time.Month;
import java.time.YearMonth;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class DaysEachMonth {
	public static void main(String[] args) {
		int year = 2000;
		System.out.println(year + "年每月的天数是:");
		for (Month month : Month.values()) {
			YearMonth ym = YearMonth.of(year, month);
			System.out.printf("%s: %d 天%n", month, ym.lengthOfMonth());
		}
	}
}
